<!--
 * @Author: your name
 * @Date: 2020-08-18 18:32:53
 * @LastEditTime: 2020-08-18 18:46:50
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \vue_plugins\src\views\tree\customtree.vue
-->
<template>
<div class="container">
    <van-nav-bar title="自定义tree组件" :border="false" left-arrow fixed @click-left="$router.go('-1')" />
    <TreeFolder :folder="folder"></TreeFolder>
</div>
</template>

<script>
import TreeFolder from './components/tree-folder.vue';
export default {
    data(){
        return{
            folder:{
                id:1,
                name:'01',
                children:[
                    {
                        id:2,
                        name:'02',
                        children:[
                            {
                                id:3,
                                name:'03',
                            }
                        ]
                    }
                ]
            }
        }
    },
    components:{
        TreeFolder
    }
}   
</script>

<style lang="less" scoped>

</style>